package com.zoweunion.mechanic.dao.base;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;

import com.zoweunion.mechanic.sqlprovider.TuiHuanSqlProvider;

/**
 * @Description:  
 * @author: 王春伟 
 * @date:   2018年12月28日 下午7:07:50    
 * @Copyright: 2018 www.zoweunion.com Inc. All rights reserved.
 */
public interface TuiHuanDao {

//	@InsertProvider(type=TuiHuanSqlProvider.class,method="applyTuiHuan")
	int applyTuiHuan(Map<String, Object> reqMap);

	@SelectProvider(type=TuiHuanSqlProvider.class,method="getSnameBySid")
	Map<String,Object> getSnameBySid(Map<String, Object> reqMap);

//	@InsertProvider(type=TuiHuanSqlProvider.class,method="applyPurchase")
	int applyPurchase(Map<String, Object> reqMap);

//	@SelectProvider(type=TuiHuanSqlProvider.class,method = "getPurchaseByCondition")
	List<Map<String, Object>> getPurchaseByCondition(Map<String, Object> reqMap);

	int getPurchaseByCount(Map<String, Object> reqMap);

	int getTuiHuanByCount(Map<String, Object> reqMap);

	List<Map<String, Object>> getTuiHuanByCondition(Map<String, Object> reqMap);
}
